<?php

/**
 * Created by PhpStorm.
 * User: L
 * Date: 2018/12/07
 * Time: 14:57
 */
namespace App\Http\Controllers;

use App\Models\Category;
use Illuminate\Http\Request;

class CategoryController extends Controllers
{
	public $model = null;
	public function __construct()
	{
		$this->model = new Category();
	}
	
	public function index(Request $request)
	{
		return $this->model->lst($request);
	}
	
	public function create(Request $request)
	{
		return $this->model->createCategory($request);
	}
}